{% extends "compose.html" %}

{% block title %} admin - compose {% end %}

{% block header %}
admin
{% end %}

{% block imenu %}
<div class="aeCompose">
  <div class="row">
	<div class="imenu">
	  <a href="/a/files/">publish</a> | <a href="/a/files/private/">private</a> | <a href="/a/files/draft/">draft</a>
	</div>
  </div>
</div>
{% end %}

{% block body %}
<div class="aePosts clearfix">
  <h2>{{ action }}</h2>
 	  {% for f in files['rowset'] %}
	  <div style="float:left;margin:15px">
		<div style="font-size:9pt;margin-bottom:5px">{{ f['caption'] or "无题" }}</div>
		<div><a href="/a/file/{{ f['_id'] }}/"><img src="/static/upload/thumb/{{ f['dstname'] }}"/></a></div>
		<div> <span style="font-size:8pt"> {{ f['ctime'] }} </span> <br /> <span style="color:#ccc;font-size:8pt">{{ (lambda c,m:m or c)(f['ctime'],f['mtime']) }}</div>
		{% for c in f["cats"] %}
		{% if c%} <span style="font-size:8pt">{{ c }}</span> {% end %} 
		{% end %}
	  </div>
	  {% end %}
	  <div style="clear:both">
		{{ modules.Page(files) }}
	  </div>
</div>

{% end %}
